﻿using System;
using System.Collections.Generic;

namespace TimeStamper.DSL
{
    public class DateRange
    {
        private int pointer = -1;
        public IList<DateTime> Dates { get; set; }

        public DateRange()
        {
            Dates = new List<DateTime>();
        }

        public void AddDate(DateTime date)
        {
            Dates.Add(date);
            pointer++;
        }

        public DateTime CurrentDate
        {
            get
            {
                return Dates[pointer];
            }
            set
            {
                Dates[pointer] = value;
            }
        }
  
    }
}